﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace JobbJaktWeb
{
    public partial class Home : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["Authorization"] != null)
            {
                if (Session["Authorization"].ToString() == "JobSeeker")
                {
                    Response.Redirect("Home1.aspx");
                }

                if (Session["Authorization"].ToString() == "HeadHunter")
                {
                    Response.Redirect("Home2.aspx");
                }

                if (Session["Authorization"].ToString() == "AdvertisementPublisher")
                {
                    Response.Redirect("Home3.aspx");
                }

                if (Session["Authorization"].ToString() == "SuperAdmin")
                {
                    Response.Redirect("Home4.aspx");
                }
            }
        }
    }
}